package com.axend.aerosense.base.viewmodel;

import androidx.lifecycle.ViewModel;

import com.axend.aerosense.base.impl.IBaseView;

import java.lang.ref.WeakReference;

public abstract class BaseViewModel extends ViewModel {
    protected WeakReference<IBaseView> baseViewWeakReference = null;

    @Override
    protected void onCleared() {
        baseViewWeakReference = null;
        super.onCleared();

    }

    // 此处用于打开界面时，加载数据
    public abstract void onLoad();
}
